<!-- 车辆详情 -->
<template>
  <div
    class="dashboard-container vehicle-detail"
  >
    <el-card
      class="search-card"
      shadow="never"
    >
      <el-tabs
        v-model="activeName"
        @tab-click="handleClick"
      >
        <el-tab-pane
          label="基本信息"
          name="first"
        >
          <VehicleInfo></VehicleInfo>
        </el-tab-pane>
        <el-tab-pane
          label="行驶证信息"
          name="second"
        >
          <DrvingLicense></DrvingLicense>
        </el-tab-pane>
      </el-tabs>
    </el-card>
  </div>
</template>
<script>
import DrvingLicense from './components/vehicle-driving-license.vue'
import VehicleInfo from './components/vehicle-info.vue'

export default {
  components: {
    DrvingLicense,
    VehicleInfo
  },
  data() {
    return {
      activeName: 'first'
    }
  },
  created() {
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event)
    }
  }
}
</script>
<style lang="scss" scoped>
.editForm{
  ::v-deep .el-input__inner{
  border: 0 solid #000;
  cursor: not-allowed;
}
}
.picbox{
  width: 220px;
  height: 160px;
  border: 1px solid #D8DDE3;
  overflow: hidden;
  .picInfo{
    width: 100%;
  }
}
::v-deep .el-tabs__header{
  margin-bottom: 24px;
}
::v-deep .el-form-item__label{
  font-weight: 400;
}
::v-deep .el-form-item{
  width: 32%;
}
::v-deep .el-input__inner{
  width: 260px;
}

::v-deep .el-card__body{
  padding: 22px 24px;
}
.search-card{
  margin: 20px;
  height: 100%;
}
.active {
  color: #ff643d;
}
</style>

<style lang="scss" scoped>

.edit-btn{
  margin-top: 400%;
  margin-left: 150%;
}
.vehicle-detail {
  ::v-deep .el-container{
    flex-direction: column;
    margin-left: 0px;

  }
  .in{
    height: calc(100vh - 205px);
    // height: 100%;
  }
  .aside-box {
    background: #ffffff;
    border-radius: 4px;
    // width: 150px;
    padding: 24px 37px 24px 37px;
    box-sizing: border-box;

    // min-height: calc(100vh - 50px);
    ::v-deep .el-aside {
      padding-bottom: 14px;
      width: 100%!important;
      display: flex;
      background-color: #ffffff;
      border-bottom:1px solid #E5E7EC ;
      text-align: left;
      font-size: 14px;
      .aside-item {
        // margin-top: 38px;
        cursor: pointer;
        &:first-child {
          margin-right: 53px;
          padding-left: 25px;

        }
      }
      .aside-item.active{
        font-size: 16px;
        font-weight: bold;
        color: #20232A;
        &:after{
          content: '';
          display: block;
          background-color:#E15536 ;
          height: 3px;
          width: 49px;
          margin: 0 auto;
          position: relative;
          top: 14px;
        }
      }
    }
  }
}
</style>
